package com.store.orm.mysql.crud;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 宫静雨
 * @version 1.0
 */
public interface Insert {
    <T> Map<String, List<Object>> insert(T t);

    <T> List<String> insertMany(List<T> ts);

    Map<String, List<Object>> insert(Class<?> cls, String json);

    List<String> insertMany(Class<?> cls, List<String> jsons);

    Map<String, List<Object>> insert(Class<?> cls, LinkedHashMap<String, Object> map);

    List<String> insertMany(Class<?> cls, Collection<LinkedHashMap<String, Object>> maps);

    Map<String, List<Object>> insert(String sql, Object... args);

    List<String> insertMany(String[] sql);
}